#include "FingerPrint-device.h"
#include "FingerPrint-manager.cpp"
#include <unistd.h>

int main(int argc, char const *argv[])
{
	// 打开设备
	FingerPrintDevice  fingerDev("/dev/ttymxc5");
	FingerPrintManager fingerManger(&fingerDev);

	sleep(3);

	cout << "开始录入指纹 recored fingerprint ok : " << endl;
	bool ok = fingerManger.recordFingerprint(10);
	cout << "录入指纹成功recored fingerprint ok : " << ok << endl;

	sleep(3);

	cout << "开始删除指纹 recored fingerprint ok : " << endl;
	ok = fingerManger.deleteFingerprint(10);
	cout << "删除指纹成功recored fingerprint ok : " << ok << endl;

	sleep(3);

	cout << "开始录入指纹 recored fingerprint ok : " << endl;
	ok = fingerManger.recordFingerprint(10);
	cout << "录入指纹成功recored fingerprint ok : " << ok << endl;

	sleep(3);

	cout << "开始情况指纹库 recored fingerprint ok : " << endl;
	ok = fingerManger.deleteFingerprint(10);
	cout << "清空指纹库 recored fingerprint ok : " << ok << endl;

	pause();

	return 0;
}